package client;
import interfaces.IGaugeMonotonic;
import it.unibo.is.interfaces.*;

/**
 * @author Stefano&Davide
 * @version 1.0
 */
public class CmdHandler implements IActivity {

	protected IGaugeMonotonic ckm;
	protected IOutputView view;
	
	public CmdHandler(IOutputView view, IGaugeMonotonic ckm){
		this.ckm=ckm;
		this.view=view;
	}

	@Override
	public void execAction(){ }

	@Override
	public void execAction(String cmd){
		if(cmd.equals("Inc")){
			try {
				ckm.update();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}
	
	@Override
	public void execAction(IIntent input){ }

	@Override
	public String execActionWithAnswer(String cmd){
		return "";
	}
}//end CmdHandler